package com.food.eat.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author：RenPu
 * @Package：com.food.eat.config
 * @Project：food-eat-market
 * @name：GetYamlValue
 * @Date：2024/5/31 19:49
 * @Filename：GetYamlValue
 */

@Configuration
public class GetYamlValue {

    @Value("${spring.your.name}")
    private String yourName;

    @Bean
    public Object getObject() {
        return yourName;
    }


}
